﻿<!doctype html>
<html>
<head>
<#include "/part_meta.ftl">
<title>编辑店铺-迈小众</title>
<link href="${st.resDomain}/css/style.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC-base.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC.css" rel="stylesheet">
<link href="${st.resDomain}/css/form-base.css" rel="stylesheet">
<style>
.form select {width:auto;height:29px;}
</style>
</head>

<body>
<!--- header --->
<div id="header">
  <div class="main f_clear">
  	<div class="logo"><h2><@shiro.principal property="c_name"/></h2><span>您好！<@shiro.principal property="m_name" />， <a href="${st.domain}/member/logoutDo">退出</a></span></div>
    <div class="f_right"><a href="${st.userDomain}">个人中心</a> <@shiro.hasRole name="SHOP"><a href="${st.shopDomain}">店铺管理</a></@shiro.hasRole><a href="${st.firmDomain}" class="selected">企业管理</a></div>
  </div>
</div>
<!--- header end--->
<!--topnav -->
<div id="topnav">
  <div class="main">
    <ul class="left">
      
      <li><a href="${st.firmDomain}/goods/list">商品</a></li>
      <li class="selected"><a href="${st.firmDomain}/store/list">店铺</a></li>
      <li><a href="${st.firmDomain}/memberVip/list">会员</a></li>
      <li><a href="${st.firmDomain}/company/edit">企业</a></li>
      <li><a href="${st.firmDomain}/goodsReport">数据</a></li>
    </ul>
  </div>
</div>
<!--topnav end-->
<div id="mainb">
    <div id="title">店铺信息</div>
    <div id="dpgl2">
      <form id="storeForm">
	  <div class="form val">
      	<input name="storeId" type="hidden" value="${store.storeId}"/>
        <p>
          <label>店铺名称：<em>*</em></label>
          <input name="name" type="text" value="${store.name}"/>
        </p>
        <p id="regions">
          <label>地区：<em>*</em></label>
          <input type="hidden" id="regionId" name="region.regionId" value="${store.region.regionId}"/>
          <input type="hidden" id="regionPath" name="regionPath" value="${store.regionPath}"/>
        </p>
        <p>
          <label>地址：<em>*</em></label>
          <input name="address" type="text" value="${store.address}"/>
        </p>
        <p>
          <label>联系人：</label>
          <input name="contacts" type="text" value="${store.contacts}"/>
        </p>
        <p>
          <label>联系电话：</label>
          <input name="phone" type="text" value="${store.phone}"/>
        </p>
      </div>
      <div class="Submit f_clear val">
       <input type="submit" onclick="$('#storeForm').trigger('validate'); return false;" class="feignhide"><!-- 实现回车提交 -->
       <a href="javascript:;" class="btn1" onclick="$('#storeForm').trigger('validate');"><i></i><em>保存</em></a><a href="${st.firmDomain}/store/list" class="btn1b"><i></i><em>返回</em></a></div>
      </form>
     </div>
    <div id="title2">店铺管理员</div>
    <div id="dpgl3">
      <form id="storeMemberForm" onsubmit="return false;">
      <div class="form f_clear val" style="width:450px;float:right;">
        <p style="padding-top: 50px;margin-top: -50px;">
          <label>用户名：</label>
          <span id="addMemMsg" class="msg-box n-top" style="float:left;min-width:150px;"></span>
          <input name="userName" type="text"/>
          <select name="roleId"  style="width: 150px;float:left;">
           <#list store.roles as role>
            <option value="${role.roleId}">${role.name}</option>
           </#list>
          </select>
          <input name="storeId" type="hidden" value="${store.storeId}"/>
          <input type="submit" class="feignhide" style="width:0px;"><!-- 实现回车提交 -->
       	  <a onclick="$('#storeMemberForm').trigger('validate');" class="btn2" style="margin-left:10px;">添加</a>
        </p>
      </div>
      </form>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab" id="storeMemberTable">
        <tr>
          <th>用户名</th>
          <th>姓名</th>
          <th>联系电话</th>
          <th class="cz">操作</th>
        </tr>
        <#list storeMembers as sm>
         <tr id="item_${sm.member.memberId}">
          <td><a href="#" id="sm_${sm.member.name}">${sm.member.name}</a></td>
          <td>${sm.member.realName}</td>
          <td>${sm.member.mobile}</td>
          <td class="cz"><a href="javascript:;" id="del_${sm.member.memberId}">删除</a></td>
         </tr>
        </#list>
      </table>
    </div>
</div>
<!--footer-->
<div id="footer">Copyright© 迈小众 <span style="padding-left:30px;">客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3101084438&site=qq&menu=yes" rel="nofollow"><img border="0" src="http://wpa.qq.com/pa?p=2:3101084438:50" alt="点击联系我们，QQ：3101084438" title="点击联系我们，QQ：3101084438"></a></span></div>
<!--footer end-->
<script data-main="${st.resDomain}/scripts/firm/store_addOrEdit" src="${st.resDomain}/scripts/require.js"></script>
</body>
</html>
